package com.migration.model.newdb;

import jakarta.persistence.*;
import lombok.Data;
import java.io.Serializable;

/**
 * 风险矩阵-可能性表 实体类
 * 表名：risk_matrix_likelihood
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "risk_matrix_likelihood")
public class RiskMatrixLikelihood implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 自增主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 租户ID
     */
    @Column(name = "tenant_id", nullable = false)
    private Long tenantId;
    
    /**
     * 可能性等级
     */
    @Column(name = "likelihood_level", nullable = false, length = 50)
    private String likelihoodLevel;
    
    /**
     * 发生频率-最小值
     */
    @Column(name = "frequency_min", length = 50)
    private String frequencyMin;
    
    /**
     * 发生频率-最大值
     */
    @Column(name = "frequency_max", length = 50)
    private String frequencyMax;
    
    /**
     * 频率值
     */
    @Column(name = "frequency_value")
    private Integer frequencyValue;
    
    /**
     * 频率描述
     */
    @Column(name = "frequency_desc", length = 255)
    private String frequencyDesc;
    
    /**
     * 可能性描述
     */
    @Column(name = "likelihood_desc", length = 255)
    private String likelihoodDesc;
    
    /**
     * 排序号
     */
    @Column(name = "sort_num", nullable = false)
    private Integer sortNum;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time", length = 20)
    private String createTime;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time", length = 20)
    private String updateTime;
    
    /**
     * 创建人
     */
    @Column(name = "create_by")
    private Long createBy;
    
    /**
     * 更新人
     */
    @Column(name = "update_by")
    private Long updateBy;
    
    /**
     * 逻辑删除标志（0：正常，1：删除）
     * 默认值: 0
     */
    @Column(name = "is_del")
    private Boolean isDel;
    
    @Override
    public String toString() {
        return "RiskMatrixLikelihood{" +
            "id=" + id +
            ", tenantId=" + tenantId +
            ", likelihoodLevel=" + likelihoodLevel +
            ", frequencyMin=" + frequencyMin +
            ", frequencyMax=" + frequencyMax +
            ", frequencyValue=" + frequencyValue +
            ", frequencyDesc=" + frequencyDesc +
            ", likelihoodDesc=" + likelihoodDesc +
            ", sortNum=" + sortNum +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", createBy=" + createBy +
            ", updateBy=" + updateBy +
            ", isDel=" + isDel +
        '}';
    }
} 